package com.imodia.checkoo.webtag;

import java.util.List;

import org.springframework.web.servlet.tags.RequestContextAwareTag;

import com.hsq.commons.util.BeanFactory;
import com.imodia.checkoo.bean.CmsDataDictionaryBean;
import com.imodia.checkoo.service.CmsDataDictionaryService;

public class DataDictionaryListTag extends RequestContextAwareTag{

	private static final long serialVersionUID = -1764906844122921796L;
	private TldParam tldParam;
	

	public TldParam getTldParam() {
		return tldParam;
	}

	public void setTldParam(TldParam tldParam) {
		this.tldParam = tldParam;
	}

	
	
	@Override
	protected int doStartTagInternal() throws Exception {
		CmsDataDictionaryService cmsDataDictionaryService = (CmsDataDictionaryService) BeanFactory.getBean("cmsDataDictionaryService");
		List<CmsDataDictionaryBean> dataDictionaryList = cmsDataDictionaryService.getClildInfo(9);
		pageContext.setAttribute("DataDictionaryListTag", dataDictionaryList);
		
		return 0;
	}

}
